from django.shortcuts import render_to_response
from gmoney.members.forms import TestForm
from django.core.context_processors import csrf
from django.http import HttpResponse

def testform(request):

    if request.method == 'POST':
        form = TestForm(request.POST)
        if form.is_valid():
            
            choice = form.cleaned_data['choice']
            assert False
            
            return HttpResponse('%s' % choice)
    else:
        form = TestForm()

    c = {'form':form, }
    c.update(csrf(request))
    return render_to_response('testform.html', c)